webdriver-downloader
Library for webdriver download. Supports chromedriver(both Chrome and Chrome for Testing), geckodriver for Windows, Linux and macOS.
Usage
Using library provided driver downloader
use *;
async
Implementing downloader for custom driver
By implementing WebdriverUrlInfo, WebdriverInstallationInfo, WebdriverVerificationInfo
, trait WebdriverDownloadInfo
is automatically implemented for struct CustomDriverInfo
.
Then you can call custom_driver_info.download_verify_install(max_attempts)
.
Notes on runtime
The library's implementation of WebdriverVerificationInfo::verify_driver
uses fantoccini
to verify installed driver.
Since fantoccini
requires tokio
as runtime, you need to use tokio
as runtime to use library provided driver downloader.